package com.unittec.zk.provider.auth.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.unittec.zk.provider.auth.entity.SysDeployFormEntity;
import com.unittec.zk.provider.auth.entity.SysUser;
import com.unittec.zk.provider.auth.mapper.SysDeployFormMapper;
import com.unittec.zk.provider.root.ServiceRoot;
import com.unittec.zk.sdk.auth.domain.SysFormDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysDeployFormService  extends ServiceRoot<SysDeployFormMapper, SysDeployFormEntity> {
    @Resource
    private SysDeployFormMapper sysDeployFormMapper;

    public SysDeployFormEntity selectSysDeployFormById(Long id){
        return sysDeployFormMapper.selectSysDeployFormById(id);
                //getOne(new LambdaQueryWrapper<SysDeployFormEntity>().eq(SysDeployFormEntity::getId, id));
    }

    public SysFormDto selectSysDeployFormByDeployId(String deployId){
        return sysDeployFormMapper.selectSysDeployFormByDeployId(deployId);
                //getOne(new LambdaQueryWrapper<SysDeployFormEntity>().eq(SysDeployFormEntity::getDeployId, formId));
    }

    public List<SysDeployFormEntity> selectSysDeployFormList(SysDeployFormEntity SysDeployForm){
        return sysDeployFormMapper.selectSysDeployFormList(SysDeployForm);
    }

    public void insertSysDeployForm(SysDeployFormEntity sysDeployForm){
        sysDeployFormMapper.insertSysDeployForm(sysDeployForm);
    }

    public void updateSysDeployForm(SysDeployFormEntity sysDeployForm){
        sysDeployFormMapper.updateSysDeployForm(sysDeployForm);
    }

    public int deleteSysDeployFormByIds(Long[] ids){
       int mark = sysDeployFormMapper.deleteSysDeployFormByIds(ids);
       return  mark;
    }

    public int deleteSysDeployFormById(Long id){
        int mark = sysDeployFormMapper.deleteSysDeployFormById(id);
        return mark;

    }



}
